// 获取请求接口
import { request } from "../utils/request.js"
export default {
    // 请求影片数据
    movies: () => request({
        type: "GET",
        url: "/api/schedules/movies",
    }),
    // 请求影院数据
    cinema: () => request({
        type: "GET",
        url: "/api/schedules/cinema",
    }),
    // 请求放映厅数据
    projection: () => request({
        type: "GET",
        url: "/api/schedules/projection",
    }),
    // 新增排片数据
    Post :(data) => request({
        type: "POST",
        url: "/api/schedules/post",
        data:data,
    }),
    // 获取排片数据
    schedules :() => request({
        type: "GET",
        url: "/api/schedules/schedules",
    }),
    // 获取座位数据
    Seats:(data) => request({
        type: "GET",
        url: "/api/schedules/seats",
        data:data,
    }),
    // 新增订单数据    data要转换成JSON.stringify格式
     indent:(data) => request({
        type: "POST",
        url: "/api/schedules/indent",
        data:data,
    }),
    // 获取订单数据
    gain :() => request({
        type: "GET",
        url: "/api/schedules/gain",
    }),
}